export let initState = {
    list:[]
}

export const reducer = (state,action)=>{
    switch(action.type){
        case "changeList":
            return{
                ...state,
                list:action.arr
            }
        default:
            return state
    }
}

export let actions = {
    changeList:(arr)=>({type:"changeList",arr})
}
export let getList = state => state.list